/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f7fa;
}

/* 布局样式 */
.app-layout {
  min-height: 100vh;
}

.modern-layout {
  background-color: #f5f7fa;
}

/* 侧边栏样式 */
.app-sider {
  box-shadow: 2px 0 8px 0 rgba(29,35,41,.05);
  position: fixed;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  height: 100vh;
  overflow: hidden;
}

.modern-sider {
  background: linear-gradient(180deg, #1a1c23 0%, #2c2f3a 100%);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.app-sider .ant-layout-sider-children {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.app-menu {
  flex: 1;
  padding-top: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.1); /* Firefox */
  height: calc(100vh - 64px - 48px - 44px); /* 视口高度减去logo高度、触发器高度和底部高度 */
}

.modern-menu {
  padding-top: 16px;
  border-right: none;
  background: transparent;
  height: calc(100vh - 64px - 44px); /* 考虑logo高度和底部高度 */
}

/* 确保内容区域不被侧边栏遮挡 */
.app-layout .ant-layout {
  transition: margin-left 0.3s cubic-bezier(0.2, 0, 0, 1);
}

/* 修复移动设备上的布局 */
@media (max-width: 768px) {
  .app-sider {
    position: absolute;
    z-index: 100;
  }
  
  .app-layout .ant-layout {
    margin-left: 0 !important;
  }
  
  .ant-layout-sider-collapsed + .ant-layout {
    margin-left: 0 !important;
  }
}

/* 自定义滚动条样式 */
.app-menu::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.app-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.app-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.app-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 菜单分割线样式 */
.app-menu .ant-menu-item-divider {
  background-color: rgba(255, 255, 255, 0.1);
  margin: 8px 16px !important;
}

.app-menu .ant-menu-item {
  margin: 4px 0;
  border-radius: 0 24px 24px 0;
  margin-right: 12px;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  align-items: center;
}

.modern-menu .ant-menu-item {
  margin: 4px 12px;
  border-radius: 8px;
  height: 40px;
  line-height: 40px;
  position: relative;
  overflow: hidden;
}

.modern-menu .ant-menu-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: #1890ff;
  border-radius: 0 2px 2px 0;
  transition: height 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.modern-menu .ant-menu-item:hover::before {
  height: 100%;
}

.modern-menu .ant-menu-item-selected::before {
  height: 100%;
}

.app-menu .ant-menu-item:active {
  background-color: rgba(24, 144, 255, 0.7);
}

.app-menu .ant-menu-item-selected {
  background-color: #1890ff !important;
}

.modern-menu .ant-menu-item-selected {
  background: linear-gradient(90deg, rgba(24, 144, 255, 0.1), rgba(24, 144, 255, 0.2)) !important;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

/* 自定义图标组件样式 */
.custom-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.custom-menu-icon .anticon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-menu-icon svg {
  display: block;
  margin: 0 auto;
}

.ant-menu-inline-collapsed .custom-menu-icon {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* 折叠状态下的菜单样式 */
.ant-layout-sider-collapsed .app-menu {
  height: calc(100vh - 64px - 48px - 0px); /* 折叠状态下没有底部内容 */
}

.ant-layout-sider-collapsed .app-menu .ant-menu-item {
  padding-left: 24px !important;
  border-radius: 0;
  margin-right: 0;
}

.ant-layout-sider-collapsed .modern-menu .ant-menu-item {
  border-radius: 8px;
  margin: 4px auto;
  width: 40px;
  padding-left: 0 !important;
  display: flex;
  justify-content: center;
}

.ant-layout-sider-collapsed .app-menu .ant-menu-item-selected {
  background-color: #1890ff !important;
}

/* 修复菜单项文字溢出问题 */
.app-menu .ant-menu-title-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 优化滚动条在滚动时的显示 */
.app-menu:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
}

/* 优化菜单项图标 */
.app-menu .anticon {
  font-size: 16px;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-menu .anticon {
  font-size: 18px;
}

/* 修复菜单图标显示异常问题 */
.ant-menu-item .ant-menu-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
}

/* 修复SVG图标在菜单项中的居中问题 */
.ant-menu-item .anticon svg {
  display: block;
  margin: 0 auto;
}

.ant-layout-sider-collapsed .ant-menu-item .ant-menu-item-icon {
  min-width: 16px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  margin-right: 0;
  margin-left: 0;
}

.ant-layout-sider-collapsed .modern-menu .ant-menu-item .anticon {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ant-layout-sider-collapsed .modern-menu .ant-menu-item {
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 修复折叠状态下图标居中问题 */
.ant-layout-sider-collapsed .ant-menu-item-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.ant-layout-sider-collapsed .ant-menu-item-icon svg {
  margin: 0 auto;
}

.ant-menu-inline-collapsed .ant-menu-item {
  padding: 0 calc(50% - 16px / 2) !important;
}

.sider-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  color: rgba(255, 255, 255, 0.65);
  background-color: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.3s;
}

.sider-trigger:hover {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.35);
}

.sider-footer {
  padding: 12px 16px;
  text-align: center;
}

.modern-footer.sider-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.sider-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modern-footer .sider-footer-content {
  padding: 0 4px;
}

.collapse-btn {
  color: rgba(255, 255, 255, 0.65);
  border: none;
  padding: 4px 8px;
}

.collapse-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Logo样式 */
.logo {
  height: 64px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.modern-logo {
  height: 64px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-content {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-left: 12px;
  transition: opacity 0.3s cubic-bezier(0.2, 0, 0, 1);
  white-space: nowrap;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #ffffff, #e6f7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge {
  background: #1890ff;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 12px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.4);
  position: relative;
  top: -1px;
}

.logo-icon {
  font-size: 24px;
  color: #1890ff;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.logo-icon-collapsed {
  font-size: 24px;
  color: #1890ff;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.ant-layout-sider-collapsed .modern-logo {
  justify-content: center;
  padding: 0;
}

.ant-layout-sider-collapsed .logo-content {
  justify-content: center;
}

.ant-layout-sider-collapsed .logo-icon-collapsed {
  font-size: 26px;
  transform: scale(1.2);
}

/* 头部样式 */
.app-header {
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 9;
}

.modern-header {
  padding: 0 24px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
}

.menu-trigger {
  margin-right: 12px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.menu-trigger:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: #1890ff;
}

.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.45);
  margin-left: 8px;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: rgba(0, 0, 0, 0.25);
}

.current-page {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
  position: relative;
}

.current-page::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: #1890ff;
  border-radius: 2px;
  transform: scaleX(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

.current-page:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.user-dropdown {
  display: flex;
  align-items: center;
  padding: 0 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.user-dropdown:hover {
  background: rgba(0, 0, 0, 0.04);
}

.user-dropdown-info {
  padding: 4px 0;
}

.user-name {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

.user-role {
  font-size: 12px;
}

.user-avatar {
  transition: all 0.3s ease;
}

.user-name-display {
  margin-left: 8px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 内容区域样式 */
.app-content {
  padding: 16px 0;
  min-height: calc(100vh - 64px - 69px);
}

.modern-content {
  padding: 0;
  background: #f0f2f5;
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  min-height: calc(100vh - 64px - 69px); /* 视口高度减去头部和底部的高度 */
}

.content-container {
  padding: 24px;
  background: white;
  margin: 0;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  animation: fadeIn 0.5s;
  border-radius: 4px;
  min-height: calc(100vh - 64px - 32px - 69px); /* 视口高度减去头部、内容边距和底部的高度 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@keyframes fadeIn {
  from { opacity: 0.8; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 卡片样式 */
.dashboard-card {
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.dashboard-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 表格样式 */
.table-actions {
  display: flex;
  gap: 8px;
}

/* 加载中状态 */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
}

/* 登录页样式 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f2f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-card {
  width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .login-card {
    width: 90%;
    max-width: 400px;
  }
  
  .header-content {
    padding: 0 12px;
  }

  .app-content {
    padding: 8px 0;
  }
  
  .modern-content {
    padding: 0;
  }

  .content-container {
    padding: 16px;
    margin: 8px;
    border-radius: 4px;
  }

  .footer-content {
    flex-direction: column;
    gap: 8px;
  }

  .app-footer {
    height: auto;
    padding: 12px;
  }

  .footer-links {
    justify-content: center;
    margin-top: 8px;
  }
  
  .header-left .breadcrumb {
    display: none;
  }

  .user-name-display {
    display: none;
  }
}

.site-layout-content {
  background: #fff;
  padding: 24px;
  min-height: 280px;
}

.card-container {
  background-color: #f0f2f5;
  padding: 24px;
}

.dashboard-statistic {
  text-align: center;
}

.ant-table-wrapper {
  background-color: white;
  border-radius: 4px;
  overflow: hidden;
}

.filter-form {
  margin-bottom: 24px;
  background-color: white;
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.action-button {
  margin-right: 8px;
}

.property-tag {
  margin: 2px;
}

.chart-container {
  background-color: white;
  padding: 24px;
  border-radius: 4px;
  margin-bottom: 24px;
}

/* 仪表盘样式 */
.dashboard-container {
  animation: fadeIn 0.5s ease-in-out;
}

.dashboard-stat-card {
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.dashboard-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.dashboard-stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.dashboard-stat-card:hover::after {
  opacity: 1;
}

.stat-card-primary {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  color: white;
}

.stat-card-success {
  background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
  color: white;
}

.stat-card-warning {
  background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
  color: white;
}

.stat-card-danger {
  background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
  color: white;
}

.quick-link-button {
  transition: all 0.3s;
  border-color: #f0f0f0;
}

.quick-link-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-color: #1890ff;
  color: #1890ff;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .dashboard-sidebar {
    margin-top: 16px;
  }
}

/* 登录页样式 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #f0f2f5;
}

.login-form {
  width: 368px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-form-title {
  text-align: center;
  margin-bottom: 24px;
}

.login-form-button {
  width: 100%;
}

/* 表格样式 */
.table-operations {
  margin-bottom: 16px;
}

.table-search {
  width: 250px;
}

/* 其他组件样式 */
.card-container {
  margin-bottom: 16px;
}

.text-center {
  text-align: center;
}

.mt-16 {
  margin-top: 16px;
}

.mb-16 {
  margin-bottom: 16px;
}

/* 仪表盘表格样式 */
.dashboard-table {
  border-radius: 8px;
  overflow: hidden;
}

.dashboard-table .ant-table-thead > tr > th {
  background-color: #f5f7fa;
  color: #5a6877;
  font-weight: 600;
}

.dashboard-table .ant-table-tbody > tr:hover > td {
  background-color: rgba(24, 144, 255, 0.05);
}

.dashboard-table .ant-table-row:nth-child(even) {
  background-color: #fafafa;
}

.dashboard-table .ant-table-cell {
  padding: 12px 16px;
}

.dashboard-table .ant-table-thead > tr > th {
  border-bottom: 2px solid #e8e8e8;
}

/* 底部样式修复 */
.app-footer {
  padding: 12px 24px;
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
  background: transparent;
  height: auto;
  min-height: 69px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.app-footer.modern-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: white;
  padding: 16px 24px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 8px;
  }

  .app-footer {
    height: auto;
    padding: 12px;
  }

  .footer-links {
    justify-content: center;
    margin-top: 8px;
  }
}

/* 确保在宽屏下footer内容不会溢出 */
@media (min-width: 1200px) {
  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* 暗色模式 */
body.dark-mode {
  background-color: #141414;
  color: rgba(255, 255, 255, 0.85);
}

.dark-mode .app-header {
  background-color: #1f1f1f;
  color: rgba(255, 255, 255, 0.85);
}

.dark-mode .content-container {
  background-color: #1f1f1f;
  color: rgba(255, 255, 255, 0.85);
}

.dark-mode .app-footer {
  background-color: #1f1f1f;
  color: rgba(255, 255, 255, 0.45);
}

.dark-mode .breadcrumb {
  color: rgba(255, 255, 255, 0.65);
}

.dark-mode .current-page {
  color: rgba(255, 255, 255, 0.85);
}

.dark-mode .footer-links a {
  color: rgba(255, 255, 255, 0.45);
}

.dark-mode .footer-links a:hover {
  color: #1890ff;
}

/* 动画过渡效果 */
.fade-enter {
  opacity: 0;
  transform: translateY(10px);
}

.fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms, transform 300ms;
}

.fade-exit {
  opacity: 1;
  transform: translateY(0);
}

.fade-exit-active {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 300ms, transform 300ms;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  body.auto-theme {
    background-color: #1f1f1f;
    color: rgba(255, 255, 255, 0.85);
  }
  
  .auto-theme .app-header,
  .auto-theme .content-container,
  .auto-theme .app-footer.modern-footer {
    background: #141414;
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
  }
  
  .auto-theme .breadcrumb,
  .auto-theme .copyright {
    color: rgba(255, 255, 255, 0.45);
  }
  
  .auto-theme .current-page {
    color: rgba(255, 255, 255, 0.85);
  }
  
  .auto-theme .footer-links a {
    color: rgba(255, 255, 255, 0.45);
  }
  
  .auto-theme .footer-links a:hover {
    color: #1890ff;
  }
}

/* 菜单项样式增强 */
.ant-menu-inline-collapsed .ant-menu-item .ant-menu-title-content {
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.ant-menu-inline-collapsed .ant-menu-item {
  padding: 0 calc(50% - 16px) !important;
  text-align: center;
}

.ant-menu-inline-collapsed .custom-menu-icon {
  margin: 0 auto;
  font-size: 18px;
}

/* 确保菜单图标在折叠状态下居中 */
.ant-menu-inline-collapsed .ant-menu-item-icon {
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

/* 确保折叠状态下菜单项文本不显示 */
.ant-menu-inline-collapsed .ant-menu-item-icon + span {
  display: none;
}

/* 修复折叠状态下菜单项的宽度和边距 */
.ant-menu-inline-collapsed .ant-menu-item,
.ant-menu-inline-collapsed .ant-menu-submenu-title {
  padding: 0 !important;
  text-align: center;
}

/* 增强菜单项选中效果 */
.ant-menu-inline-collapsed .ant-menu-item-selected {
  background: linear-gradient(90deg, rgba(24, 144, 255, 0.2), rgba(24, 144, 255, 0.3)) !important;
}

/* 增强菜单项悬停效果 */
.ant-menu-inline-collapsed .ant-menu-item:hover {
  background-color: rgba(24, 144, 255, 0.1);
}

/* 修复菜单项内部链接样式 */
.ant-menu-item a {
  color: inherit;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}

.ant-menu-inline-collapsed .ant-menu-item a {
  justify-content: center;
}

/* 菜单悬浮提示样式优化 */
.ant-tooltip {
  max-width: 200px;
}

.ant-tooltip-inner {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 4px;
}

/* 展开状态下的菜单项样式 */
.ant-menu:not(.ant-menu-inline-collapsed) .ant-menu-item {
  display: flex;
  align-items: center;
}

.ant-menu:not(.ant-menu-inline-collapsed) .ant-menu-item .ant-menu-title-content {
  flex: 1;
  margin-left: 10px;
}

.ant-menu:not(.ant-menu-inline-collapsed) .custom-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 10px;
}

/* 添加新的样式支持 */

/* 通知中心样式 */
.notification-item {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.notification-item.unread {
  background-color: rgba(24, 144, 255, 0.05);
}

.notification-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.dark-mode .notification-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.notification-item .ant-list-item-meta-title {
  margin-bottom: 4px !important;
}

/* 头部按钮样式 */
.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.action-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: #1890ff;
}

.dark-mode .action-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 菜单分组标题样式 */
.ant-menu-item-group-title {
  padding: 8px 16px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px !important;
}

/* 暗黑模式样式 */
.dark-mode {
  background-color: #141414;
  color: rgba(255, 255, 255, 0.85);
}

.dark-mode .app-header {
  background-color: #1f1f1f !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-mode .content-container {
  background-color: #1f1f1f !important;
}

.dark-mode .app-footer {
  background-color: #1f1f1f !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-mode .ant-drawer-content {
  background-color: #1f1f1f;
}

.dark-mode .ant-drawer-header {
  background-color: #1f1f1f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-mode .ant-tabs-nav {
  color: rgba(255, 255, 255, 0.85);
}

.dark-mode .ant-tabs-tab {
  color: rgba(255, 255, 255, 0.65);
}

.dark-mode .ant-tabs-tab-active {
  color: #1890ff;
}

.dark-mode .ant-tabs-ink-bar {
  background-color: #1890ff;
}

/* 全局搜索样式 */
.ant-drawer-top .ant-drawer-content-wrapper {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.ant-drawer-content {
  border-radius: 0 0 8px 8px;
}

/* 增强的侧边栏样式 */
.modern-sider {
  background: linear-gradient(180deg, #001529 0%, #002140 100%);
}

.dark-mode .modern-sider {
  background: linear-gradient(180deg, #141414 0%, #1f1f1f 100%);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .action-btn {
    width: 32px;
    height: 32px;
  }
  
  .header-right .ant-space {
    gap: 8px !important;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.notification-item {
  animation: fadeIn 0.3s ease;
}

/* 增强的用户下拉菜单 */
.user-dropdown {
  padding: 4px 8px;
  border-radius: 24px;
  transition: all 0.3s;
}

.user-dropdown:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.dark-mode .user-dropdown:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 事件列表和详情页样式 */
.events-page .modern-table,
.event-details-page .modern-table {
  border-radius: 8px;
  overflow: hidden;
}

.events-page .modern-table .ant-table-thead > tr > th,
.event-details-page .modern-table .ant-table-thead > tr > th {
  background: #f5f7fa;
  color: #5a6877;
  font-weight: 500;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.events-page .modern-table .ant-table-tbody > tr > td,
.event-details-page .modern-table .ant-table-tbody > tr > td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.events-page .modern-table .ant-table-tbody > tr:hover > td,
.event-details-page .modern-table .ant-table-tbody > tr:hover > td {
  background-color: rgba(24, 144, 255, 0.05);
}

.events-page .ant-card-head,
.event-details-page .ant-card-head {
  border-bottom: 1px solid #f0f0f0;
  padding: 0 24px;
}

.events-page .ant-card-body,
.event-details-page .ant-card-body {
  padding: 24px;
}

.events-page .ant-card-head-title,
.event-details-page .ant-card-head-title {
  padding: 16px 0;
}

.events-page .ant-form-item-label > label,
.event-details-page .ant-form-item-label > label {
  color: #5a6877;
  font-weight: 500;
}

.events-page .ant-select-selector,
.events-page .ant-input,
.events-page .ant-picker,
.event-details-page .ant-select-selector,
.event-details-page .ant-input,
.event-details-page .ant-picker {
  border-radius: 6px;
  border-color: #d9d9d9;
  transition: all 0.3s;
}

.events-page .ant-select-selector:hover,
.events-page .ant-input:hover,
.events-page .ant-picker:hover,
.event-details-page .ant-select-selector:hover,
.event-details-page .ant-input:hover,
.event-details-page .ant-picker:hover {
  border-color: #40a9ff;
}

.events-page .ant-select-focused .ant-select-selector,
.events-page .ant-input:focus,
.events-page .ant-picker-focused,
.event-details-page .ant-select-focused .ant-select-selector,
.event-details-page .ant-input:focus,
.event-details-page .ant-picker-focused {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.events-page .ant-btn,
.event-details-page .ant-btn {
  border-radius: 6px;
  transition: all 0.3s;
}

.events-page .ant-card-tab-list,
.event-details-page .ant-card-tab-list {
  margin-bottom: 0;
}

.events-page .ant-card-tab-list .ant-tabs-tab,
.event-details-page .ant-card-tab-list .ant-tabs-tab {
  padding: 12px 0;
}

.events-page .ant-card-tab-list .ant-tabs-tab + .ant-tabs-tab,
.event-details-page .ant-card-tab-list .ant-tabs-tab + .ant-tabs-tab {
  margin-left: 24px;
}

.events-page .ant-card-tab-list .ant-tabs-tab-active,
.event-details-page .ant-card-tab-list .ant-tabs-tab-active {
  color: #1890ff;
}

.events-page .ant-card-tab-list .ant-tabs-ink-bar,
.event-details-page .ant-card-tab-list .ant-tabs-ink-bar {
  background-color: #1890ff;
}

.events-page .ant-pagination,
.event-details-page .ant-pagination {
  margin-top: 16px;
}

.events-page .ant-pagination-item,
.event-details-page .ant-pagination-item {
  border-radius: 6px;
}

.events-page .ant-pagination-item-active,
.event-details-page .ant-pagination-item-active {
  border-color: #1890ff;
  background-color: #1890ff;
}

.events-page .ant-pagination-item-active a,
.event-details-page .ant-pagination-item-active a {
  color: white;
}

.events-page .ant-pagination-item:hover,
.event-details-page .ant-pagination-item:hover {
  border-color: #1890ff;
}

.events-page .ant-pagination-item:hover a,
.event-details-page .ant-pagination-item:hover a {
  color: #1890ff;
}

.events-page .ant-pagination-item-active:hover a,
.event-details-page .ant-pagination-item-active:hover a {
  color: white;
}

/* 暗色模式支持 */
.dark-mode .events-page .modern-table .ant-table-thead > tr > th,
.dark-mode .event-details-page .modern-table .ant-table-thead > tr > th {
  background: #1f1f1f;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid #303030;
}

.dark-mode .events-page .modern-table .ant-table-tbody > tr > td,
.dark-mode .event-details-page .modern-table .ant-table-tbody > tr > td {
  border-bottom: 1px solid #303030;
}

.dark-mode .events-page .modern-table .ant-table-tbody > tr:hover > td,
.dark-mode .event-details-page .modern-table .ant-table-tbody > tr:hover > td {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .events-page .ant-card-head,
.dark-mode .event-details-page .ant-card-head {
  border-bottom: 1px solid #303030;
}

.dark-mode .events-page .ant-form-item-label > label,
.dark-mode .event-details-page .ant-form-item-label > label {
  color: rgba(255, 255, 255, 0.85);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .events-page .ant-card-body,
  .event-details-page .ant-card-body {
    padding: 16px;
  }
  
  .events-page .ant-card-head,
  .event-details-page .ant-card-head {
    padding: 0 16px;
  }
  
  .events-page .ant-card-tab-list .ant-tabs-tab + .ant-tabs-tab,
  .event-details-page .ant-card-tab-list .ant-tabs-tab + .ant-tabs-tab {
    margin-left: 16px;
  }
} 